﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Zongsoft.Common;

namespace Dxr.Police.IACS.Web.Models
{
    public class ResourceDisplayModel : Dxr.Police.IACS.Models.Resource
    {
        public string TypeName
        {
            get
            {
                return Type.GetEnumEntry().Description;
            }
        }

        public string CollectDateText
        {
            get
            {
                return CollectDate.ToString("yyyy-MM-dd");
            }
        }

        public string CreatedTimeText
        {
            get
            {
                return CreatedTime.ToString("yyyy-MM-dd");
            }
        }
    }
}
